#ifndef _VIEWER_H
#define _VIEWER_H

#include "gl/TrackballViewer.h"
#include "Bridge.h"
#include "Box.h"

class Viewer: public TrackballViewer {
protected:
	ParticleSystem* particleSystem;
	CollisionSystem* collisionSystem;
	Bridge* bridge;
	Box* box1;
	Box* box2;
public:
	Viewer(const char* _title, int _width, int _height,
			double, double, int);
	//void mouse(int button, int state, int x, int y);
	~Viewer();

protected:
	virtual void init();
	virtual void draw_scene(DrawMode _drawMode);
	virtual void idle();
	//virtual void mouse(int button, int state, int x, int y);
	virtual void motion(int x, int y);

	int frame;
	int curTime;
	int oldTime;
};

#endif /* _VIEWER_H */
